home *** CD-ROM | disk | FTP | other *** search
- /*{{{}}}*/
- /*{{{ includes*/
- #include <stdio.h>
-
- #include <h/keys.h>
- #include <h/token.h>
- #include <h/rcformat.h>
- #include <lib/ori_rc_lib.h>
- /*}}} */
-
- /*{{{ ref_decode_tag*/
- int ref_decode_tag(unsigned char const *s)
- { int x,c;
-
- for (x=0;;)
- switch((c= *s++))
- { default:
- if ((c-=REF_COUNT_BASE)<0)
- case REF_NODE_LIMITER:
- case '\0':
- if (x&1)
- return(x>>1);
- else
- return(-(x>>1));
- x=x*REF_MODULO+c;
- continue;
- }
- }
- /*}}} */
-